package com.paypal.android.MEP.a;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout.LayoutParams;
import com.paypal.android.MEP.PayPalActivity;
import com.paypal.android.a.c;
import com.paypal.android.a.f;
import com.paypal.android.a.r;
import com.paypal.android.b.i;
import com.paypal.android.b.n;
import java.math.BigDecimal;

public final class q extends n
  implements View.OnClickListener, i
{
  public static String a = null;
  private com.paypal.android.MEP.b.e b;
  private Button c;

  public q(Context paramContext)
  {
    super(paramContext);
  }

  public final void a(Context paramContext)
  {
    com.paypal.android.MEP.e locale = com.paypal.android.MEP.e.a();
    super.a(paramContext);
    LinearLayout localLinearLayout1 = f.a(paramContext, -1, -2);
    localLinearLayout1.setOrientation(1);
    localLinearLayout1.setPadding(5, 5, 5, 15);
    this.b = new com.paypal.android.MEP.b.e(paramContext, this);
    this.b.a(this);
    localLinearLayout1.addView(this.b);
    addView(localLinearLayout1);
    LinearLayout localLinearLayout2 = new LinearLayout(paramContext);
    localLinearLayout2.setOrientation(1);
    localLinearLayout2.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
    localLinearLayout2.setPadding(5, 5, 5, 5);
    localLinearLayout2.setBackgroundDrawable(f.a());
    if (locale.l() == 1)
      localLinearLayout2.addView(new com.paypal.android.b.j(com.paypal.android.a.j.a("ANDROID_donation_made"), paramContext));
    while (true)
    {
      com.paypal.android.b.g localg = new com.paypal.android.b.g(paramContext, r.b, r.b);
      localg.setLayoutParams(new RelativeLayout.LayoutParams(-1, -2));
      String str1 = com.paypal.android.a.j.a("ANDROID_successfully_paid_amount_to_recipient");
      if (locale.l() == 1)
        str1 = com.paypal.android.a.j.a("ANDROID_successfully_donated_amount_to_recipient");
      String str2 = str1.replace("{1}", locale.c().h().toString());
      localg.a(str2 + ".");
      localLinearLayout2.addView(localg);
      LinearLayout localLinearLayout3 = f.a(paramContext, -1, -2);
      localLinearLayout3.setOrientation(1);
      localLinearLayout3.setGravity(1);
      this.c = new Button(paramContext);
      this.c.setText(com.paypal.android.a.j.a("ANDROID_done"));
      this.c.setLayoutParams(new RelativeLayout.LayoutParams(-2, f.b()));
      this.c.setBackgroundDrawable(com.paypal.android.a.g.a());
      this.c.setTextColor(-16777216);
      this.c.setOnClickListener(this);
      localLinearLayout3.addView(this.c);
      localLinearLayout2.addView(localLinearLayout3);
      addView(localLinearLayout2);
      return;
      localLinearLayout2.addView(new com.paypal.android.b.j(com.paypal.android.a.j.a("ANDROID_payment_made"), paramContext));
    }
  }

  public final void a(com.paypal.android.b.h paramh, int paramInt)
  {
  }

  public final void d()
  {
  }

  public final void e()
  {
  }

  public final void onClick(View paramView)
  {
    if (paramView == this.c)
    {
      if ((a == null) || (a.length() == 0))
        a = "1111111";
      PayPalActivity.a().a((String)c.f().d("PayKey"), (String)c.f().d("PaymentExecStatus"), true);
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.MEP.a.q
 * JD-Core Version:    0.6.2
 */